testCase41='DBshop041_删除充值记录流程'
import  time
from public.action import *
from public.testData import *
from public.tools import*
from public.business import *
firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu3(firefox,'客户管理','客户余额','充值记录')#进入三级菜单充值记录

firefox.find_element_by_xpath('//td[contains(.,"%s")]/following-sibling::td[5]'%userName).click() #定位到用户名
firefox.switch_to.alert.accept()
time.sleep(3)

try:
    firefox.find_element_by_xpath('//td[text()="%s"]'%userName).is_displayed()
    writeLog('%s 测试不通过' % testCase41)
    getPhoto(firefox)
except:
    writeLog('%s 测试通过' % testCase41)

firefox.quit()





